#!/usr/bin/env python

NAME = 'plotmoi'
AUTHORS = 'Maxime Biais'
AUTHORS_EMAIL= 'maxime.biais@gmail.com'
DESCRIPTION = 'Plot formatted or non formatted data to SVG'
CLASSIFIERS = [
    'Topic :: Software Development :: Libraries :: Python Modules',
    'Topic :: Utilities',
    'License :: OSI Approved :: GNU General Public License (GPL)',
    'Operating System :: OS Independent',
    'Programming Language :: Python']
WEBSITE = 'http://code.google.com/p/plotmoi/'
LICENSE = 'GNU General Public License (GPL)'

import os
import sys
import plotmoi

def main():
    if sys.hexversion < 0x2050000:
        print "Sorry, you need Python 2.5 or greater."
        sys.exit(1)

    if "--setuptools" in sys.argv:
        sys.argv.remove("--setuptools")
        from setuptools import setup
        use_setuptools = True
    else:
        from distutils.core import setup
        use_setuptools = False

    root_dir = os.path.dirname(__file__)

    install_options = {
        "name": NAME,
        "version": plotmoi.__version__,
        "url": WEBSITE,
        "author": AUTHORS,
        "author_email": AUTHORS_EMAIL,
        "description": DESCRIPTION,
        "classifiers": CLASSIFIERS,
        "packages": ['plotmoi'],
        "license": LICENSE,
        "package_data": {'plotmoi': ['tests/*']},
    }

    setup(**install_options)

if __name__ == "__main__":
    main()

